home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / April 96 / Re Finding locations of othe.4 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.5 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Finding locations of other Frames
  2. Sent:        4/19/96 1:49 PM
  3. Received:    4/19/96 2:01 PM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Is there anyway to find the location of Frame within a containing frame. It
  9. >is my impression that I don't really need to do this, however, why give an
  10. >orgainzational structure (i.e. Embedded Frames have a shape) if you were
  11. >never meant to use them.
  12. >
  13. >I want to know mainly for placing of things, if I create a frame
  14. >programmatically I want to place it geographically near the some other
  15. >Frame that is owned by the same part (i.e siblings), and I seem to not
  16. >quite be understaning if I can even do that. It seems I can make a few
  17. >assumptions about things once the Facets are created, but nothing
  18. >beforehand.
  19. >
  20. >Is this true?
  21. >
  22. >Jer,
  23. >
  24. >--------------------------------------------------------------------------
  25. >----
  26. >Jerome Jahnke          |Well, I was only a kid didn't know enough to be 
  27. >afraid
  28. >BSD Academic Computing |Playing the game, but not the way the big boys played
  29. >University of Chicago  |Nothing to lose maybe I had something to trade
  30. >j-jahnke@uchicago.edu  |The way the big wheel spins * The Big Wheel -- N 
  31. >Peart
  32. >----------------------------------------------------------------------------
  33. >--
  34. >
  35.  
  36. The Frame shape does not have any notion of position it only has a notion 
  37. of size. Frame shape should always have their top-left corner equal to 
  38. (0,0). The position is given by the external transform of the facet. So 
  39. yes you are right you can only know the position of a frame once the 
  40. facet is created. But, as an embedding part you should have some data 
  41. structure that tell you where embedded frame are. It is your data 
  42. structure that telling OpenDoc where to create a facet. You should not 
  43. rely on OpenDoc to keep track of the position of your embedded facets. 
  44. Look at ODFDraw, it has a proxyShape which contains the position and size 
  45. of embedded frames (/facets). Embedded frames and facets are created 
  46. using the proxyshape data. At anytime you should be able to tell what is 
  47. the size and position of an embedded frame without even having to a metod 
  48. of ODFrame and ODFacet.
  49.  
  50. .......................................................................
  51.  Henri Lamiraux                                      lamiraux@apple.com
  52.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  53. .......................................................................
  54.  
  55.  
  56.